package object;

public class Teacher extends Person {
    private Course course;

    public Teacher(int id, String name) {
        super(id, name, null);
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public Course getCourse() {
        return course;
    }
    public void createCourse(int courseId, String courseName, String location, String time) {
        Course course = new Course(courseId, courseName, location, time, this);
        setCourse(course);
    }

}

